package edu.guet.server.utils;

/**
 * @description: 异常处理枚举类
 * @author: Junny
 * @date: 2024/6/11
 * @version: v1.0
 * @update:
 *
 */
public enum ExceptionEnum implements BaseInfoInterface {
//    成功类别   S：请求成功 A:数据错误 B:服务器错误
    SUCCESS("S0000", "请求成功!"),
    BODY_NOT_MATCH("A1000","数据参数错误！");


    private final String resultCode;


    private final String resultMsg;

    ExceptionEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
